Skip to content

fix(aggregator): record-claude-launch refuses empty flag values (#6895) - #6896

Merged
dezren39 merged 1 commit into
mainfrom
creator-b/6895-record-launch-empty-values
Nov 7, 2026
Merged

dezren39 merged 1 commit into
mainfrom
creator-b/6895-record-launch-empty-values

Conversation

@dezren39

@dezren39 dezren39 commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Fixes #6895.

record-claude-launch.ts's valueAfter (#3415 guard) refused missing and flag-like values but not empty ones — the case both sibling guards (post-alert.ts, collect-fleet-feed.ts) do check. Verified on the pre-fix script: --id "" appended {"id":"", …} with exit 0 (the registry merge keys by (source, id), so empty-id records fold into one phantom entry), --parent "" / --status "" were recorded verbatim, and --file "" died with a raw ENOENT stack.

Change: valueAfter also refuses empty/whitespace-only values through the existing usage-error path (message naming the flag, exit 2, nothing appended), with the doc comment updated. New pinning test record-claude-launch-empty-value-6895.test.ts sits beside the #3415 one and covers --id "", --id " ", --parent "", --status "", --model "", --label "", --label " ", --task "", and --file "", plus a control.

Verification (laptop, this branch): bun test test/record-claude-launch-empty-value-6895.test.ts test/record-claude-launch-flag-value-3415.test.ts — 4 pass, 0 fail.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

valueAfter omitted the empty case its sibling guards check: --id "" appended a session record with no id (registry merge keys by (source, id), so empty-id records fold into one phantom entry), --parent ""/--status "" were recorded verbatim, and --file "" died with a raw ENOENT stack. Refuse empty/whitespace-only values via the existing usage-error path (exit 2, nothing appended), with a pinning test beside the #3415 one.
@dezren39
dezren39 requested a review from a team as a code owner November 7, 2026 15:28
@dezren39
dezren39 merged commit 6d2a24b into main Nov 7, 2026
3 checks passed
@dezren39
dezren39 deleted the creator-b/6895-record-launch-empty-values branch November 7, 2026 15:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T15:30:32.926482Z 8cdf874 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant